package hk.ust.android_competition.view_adapter;

import android.content.res.Resources;

import hk.ust.android_competition.activities.LandscapeFullScreenActivity;
import hk.ust.android_competition.e_pet.R;

public abstract class ViewAdapter {
    private final Resources res;
    private LandscapeFullScreenActivity activity;
    public final int[][] pet_image_source =
            {{R.drawable.panda_normal, R.drawable.panda_smile, R.drawable.panda_sleepy,R.drawable.panda_sick, R.drawable.panda_cry, R.drawable.panda_dirty},
                    {R.drawable.rabbit_normal, R.drawable.rabbit_smile, R.drawable.rabbit_sleepy,R.drawable.rabbit_sick, R.drawable.rabbit_cry, R.drawable.rabbit_dirty},
                    {R.drawable.giraffe_normal, R.drawable.giraffe_smile,R.drawable.giraffe_sleepy, R.drawable.giraffe_sick, R.drawable.giraffe_cry, R.drawable.giraffe_dirty}};

    public ViewAdapter(LandscapeFullScreenActivity activity, int contentViewId) {
        this.activity = activity;
        this.activity.setContentView(contentViewId);
        res = this.activity.getResources();
    }

    public Resources getRes() {
        return res;
    }

    public LandscapeFullScreenActivity getActivity() {
        return activity;
    }
}
